package com.example.administrator.pomelostreet.fragment;


import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;

import com.example.administrator.pomelostreet.R;
import com.example.administrator.pomelostreet.mine.DengLu;
import com.example.administrator.pomelostreet.mine.DingDan;
import com.example.administrator.pomelostreet.mine.Help;
import com.example.administrator.pomelostreet.mine.SheZhi;
import com.example.administrator.pomelostreet.mine.YouBiGou;
import com.example.administrator.pomelostreet.mine.ZhuCe;

/**
 * A simple {@link Fragment} subclass.
 */
public class Mine_Fragment extends Fragment {


    public Mine_Fragment() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(final LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {


        return inflater.inflate(R.layout.fragment_me_, container, false);
    }

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        final Intent intent =new Intent(getContext(),DengLu.class);
        LinearLayout ll_denglu= (LinearLayout) view.findViewById(R.id.ll_denglu);
        ll_denglu.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                startActivity(intent);

            }
        });
        view.findViewById(R.id.r_huati).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(intent);
            }
        });
        view.findViewById(R.id.zhuce).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                // TODO: 2017/2/10  
                Intent intent1 = new Intent(getContext(), ZhuCe.class);
                startActivity(intent1);

            }
        });
        view.findViewById(R.id.r_youbi).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(getContext(), YouBiGou.class));
            }
        });
        view.findViewById(R.id.r_bangzhu).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent1 = new Intent(getContext(), Help.class);
                startActivity(intent1);
            }
        });
        view.findViewById(R.id.r_dingdan).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent1 = new Intent(getContext(), DingDan.class);
                startActivity(intent1);
            }
        });
        view.findViewById(R.id.r_shezhi).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent1 = new Intent(getContext(), SheZhi.class);
                startActivity(intent1);
            }
        });
    }

}
